/*
//
//              INTEL CORPORATION PROPRIETARY INFORMATION
//  This software is supplied under the terms of a license  agreement or
//  nondisclosure agreement with Intel Corporation and may not be copied
//  or disclosed except in  accordance  with the terms of that agreement.
//    Copyright (c) 2007-2008 Intel Corporation. All Rights Reserved.
//
//
*/

#ifndef __UMC_AVS_ENC_PROCESSING_UNIT_CPY_H
#define __UMC_AVS_ENC_PROCESSING_UNIT_CPY_H

#include "umc_avs_processing_unit.h"
#include "umc_avs_list.h"

#include "umc_avs_enc_stream_copier.h"

namespace UMC
{

class AVSCpyProcessingUnit : public AVSListElement<AVSProcessingUnit>
{
public:
    // Default constructor
    AVSCpyProcessingUnit(void);
    // Destructor
    virtual
    ~AVSCpyProcessingUnit(void);

    // Let the performer find the job
    virtual
    bool LoadJob(AVSListElement<AVSFrame> *pFrameList);

    // Main working function
    virtual
    Status DoJob(void);

    // Error handling function
    virtual
    Status HandleError(void);

protected:
    // Set the job done
    virtual
    void UnloadJob(void);

    AVSStreamCopier m_copier;                                   // (AVSStreamCopier) bit stream creator

};

} // namespace UMC

#endif // __UMC_AVS_ENC_PROCESSING_UNIT_CPY_H
